Skip to main content

Manage Blogs

Post new blog

POST /blog/post
Body(Json)
keystypeDescription
titlerequiredtitle of the blog
contentrequiredcontent of the blog
descriptionrequireddescription of the blog
Responses
http codecontent-typeresponse
200application/json{"statusCode":"200","message":"Blog posted successfully","data":"$data"}
406application/json"statusCode":"406","message":"Title cannot be over 100 characters","data":"null"
406application/json"statusCode":"406","message":"Description cannot be over 200 characters","data":"null"
406application/json"statusCode":"406","message":"Content cannot be over 5000 characters","data":"null"
400application/json"statusCode":"400","message":"Content cannot be empty","data":"null"
400application/json"statusCode":"400","message":"Content cannot be null","data":"null"
400application/json"statusCode":"400","message":"Title cannot be empty","data":"null"
400application/json"statusCode":"400","message":"Title cannot be null","data":"null"
400application/json"statusCode":"400","message":"Description cannot be empty","data":"null"
400application/json"statusCode":"400","message":"Description cannot be empty","data":"null"

Get a list of blogs

GET /blog/like/$id$
Responses
http codecontent-typeresponse
200application/json{"statusCode":"200","message":"Blogs ,"data":"$listofblogs"}